#include "map.h"
#include <stdio.h>

int main(){
    map_head_t map_head;
    mapInit(&map_head);
    MyMapNode node1,node2,node3;
    node1.key = 1;
    node2.key = 2;
    node3.key = 3;
    node1.value = 100;
    node2.value = 200;
    node3.value = 300;
    mapAdd(&map_head,&node1);
    mapAdd(&map_head,&node2);
    mapAdd(&map_head,&node3);
    mapShow(&map_head);
    MyMapNode *fnode;
    fnode = mapFind(&map_head,2);
    if(NULL != fnode){
        printf("find key:%d val:%u\n",fnode->key,fnode->value);
    }
    mapDestory(&map_head);

    mapFind(&map_head,2);
    return 0;
}
